<template>
	<view>
		<scroll-view class="scroll-view_H" scroll-x="true" scroll-left="0">
			<view v-for="item in instructorArr" :key="item.Uid" :id="item.Id" class="scroll-view-item_H">
				<view class="instructorINFO">
					<image class="img" src="" mode=""></image>
					<view>
						{{item.instructorName}}
					</view>
				</view>
			</view>
		</scroll-view>
	</view>
</template>

<script>
	export default {
		name: "Scroll-view",
		data() {
			return {
				instructorArr: [{
						Uid: 1,
						Id: "demo1",
						instructorAvatar: "",
						instructorName: "1"
					},
					{
						Uid: 2,
						Id: "demo2",
						instructorAvatar: "",
						instructorName: "2"
					},
					{
						Uid: 3,
						Id: "demo3",
						instructorAvatar: "",
						instructorName: "3"
					},
					{
						Uid: 4,
						Id: "demo4",
						instructorAvatar: "",
						instructorName: "4"
					}
				]
			};
		}
	}
</script>

<style lang="scss">
	.scroll-view_H {
		white-space: nowrap;
		width: 100%;
	}

	.img {
		height: 170rpx;
		width: 170rpx;
		border-radius: 50%;
		background-color: #999;
	}

	.name {
		font-weight: 500;
		font-size: 32rpx;
		color: black;
	}

	.scroll-view-item_H {
		margin: 0 5rpx;
		background-color: #e9e9e9;
		border-radius: 20rpx;
		display: inline-block;
		width: 38.3%;
		text-align: center;
		font-size: 36rpx;
		height: 350rpx;
	}

	.instructorINFO {
		height: 100%;
		display: flex;
		justify-content: space-around;
		align-items: center;
		flex-direction: column;
	}
</style>
